package cn.tedu.csmall.product.mapper;

import cn.tedu.csmall.product.pojo.entity.Picture;
import cn.tedu.csmall.product.pojo.vo.PictureMapperListVO;
import cn.tedu.csmall.product.pojo.vo.PictureMapperStandardVO;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * ClassName: PictureMapper
 * Package: cn.tedu.csmall.product.mapper
 * Description
 *
 * @Author: 大傻
 * @Create:2022/11/26
 */

@Repository
public interface PictureMapper {
    int insert(Picture picture);
    int insertBatch(List<Picture> pictureList);

    int deleteById(Long id);
    int deleteByIds(Long[] ids);

    int update(Picture picture);

    int count();
    PictureMapperStandardVO getStandardById(Long id);
    List<PictureMapperListVO> list();
}
